{include file="header.tpl"}
<div id="main">
<form action="signup.php?next=signup" method="post">
<div>
<h1>Sign Up</h1>
</div>
<div>{$errormessage}</div>
<table>
	<tbody>
		<tr>
			<td>e-mail:</td>
			<td>
			<div><input type="text" name="email" maxlength="37" value="{$email}" /></div>
			</td>
		</tr>
		<tr>
			<td>username:</td>
			<td>
			<div><input type="text" name="username" maxlength="37" value="{$username}" /></div>
			</td>
		</tr>
		<tr>
			<td>password:</td>
			<td>
			<div><input type="password" name="password" maxlength="37" value="" /></div>
			</td>
		</tr>
		<tr>
			<td>re-password:</td>
			<td>
			<div><input type="password" name="repassword" maxlength="37" value="" /></div>
			</td>
		</tr>
		<tr>
			<td>security question:</td>
			<td>
			<div><select name="question" id="question">
				<option value="choosequestion" style="font-style: italic;">Choose a
				question...</option>
				<option value="What is your primary frequent flyer number">What is
				your primary frequent flyer number</option>
				<option value="What is your library card number">What is your
				library card number</option>
				<option value="What was your first phone number">What was your first
				phone number</option>
				<option value="What was your first teacher&#39;s name">What was your
				first teacher&#39;s name</option>
				<option value="What is your father&#39;s middle name">What is your
				father&#39;s middle name</option>
			</select></div>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<div><input type="text" name="ownquestion" maxlength="237" value=""
				style="display: none;" /></div>
			</td>
		</tr>
		<tr>
			<td>answer:</td>
			<td>
			<div><input type="text" name="answer" maxlength="237" value="" /></div>
			</td>
		</tr>
		<tr>
			<td>verification:</td>
			<td>
			<div><img name="captcha" id="captcha" src="{$captcha}" /><span><a
				href="JavaScript:updateauthword();">Refresh</a></span></div>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<div><input type="text" name="verification" value="" /></div>
			</td>
		</tr>
		<tr>
			<td>terms of service:</td>
			<td>
			<div><textarea readonly="readonly">The terms of 52danci service!</textarea></div>
			</td>
		</tr>
	</tbody>
</table>
{literal}
<script language="javascript" type="text/javascript">
//更新验证码
function updateauthword(){
	document.getElementById("captcha").src = "captcha.php?nocache="+new Date().getTime();
}
</script> 
{/literal}
<div>
	<input type="submit" name="submit" value="I accept. Create my account." />
</div>
</form>
</div>
<!-- end of main body -->

{include file="footer.tpl"}
